<div class="span9">
    <section id="home">
        <table class="table table-bordered table-striped">
            <colgroup>
                <col class="span1">
                <col class="span7">
            </colgroup>
            <thead align="center">
                <tr>
                    <th colspan="7" style="text-align: center; background-color:#610E54; color:white;">INFORMASI PROPOSAL TESIS<br/>{nama} {telp} {email}</th>
                </tr>
                <tr>
                    <th>KODE TESIS</th>
                    <th>TANGGAL</th>
                    <th>BAB</th>
                    <th>STATUS</th>
                    <th>TGL KOREKSI</th>
                    <th>DOWNLOAD</th>
                    <th>ACTION</th>
                </tr>
            </thead>
            <tbody>
                <?php foreach ($tesis as $data): ?>
                    <tr>
                        <td><span class="label label-info"><?php echo $data->kode ?></span></td>
                        <td><?php echo $data->time ?></td>
                        <td><?php echo $data->bab ?></td>
                        <td><span class="label label-success"><?php echo $data->status ?></span></td>
                        <td><?php echo $data->koreksi ?></td>
                        <td>
                            <?php echo anchor('dosen/download/' . $data->hash, 'Download') ?>
                        </td>
                        <td>
                            <?php
                            if ($data->status == 'Submitted') {
                                echo '<div class="btn-group">
                                <button class="btn btn-success dropdown-toggle" data-toggle="dropdown">Approve <span class="caret"></span></button>
                                <ul class="dropdown-menu">';
                                echo '<li>' . anchor('dosen/saranTesis/' . $data->kode . '/' . $data->hash, 'Suggestion') . '</li>';
                                echo '<li>' . anchor('dosen/confirmTesis/' . $data->kode . '/' . $data->hash, 'Accept') . '</li>';
                                echo '</ul></div>';
                            }
                            ?>
                        </td>
                    </tr>
                <?php endforeach; ?>
            </tbody>
        </table>
    </section>
</div>
</div>